const BASE_URL = "https://babycar.wykji.cn"

const request = async ({ method = 'GET', url, data = null,responseType = 'json'}) => {
	try{
		uni.request({
			url:BASE_URL + url,
			data:data,
			responseType:responseType
		})
	}catch(e){
		return{
			data:null,
			message : e.message,
		}
	}
}